package com.xjrsoft.module.customer.erp_model.discountActivities.service;

import com.xjrsoft.module.customer.erp_model.discountActivities.entity.TActivity;
import com.xjrsoft.module.customer.erp_model.discountActivities.entity.TActivitydetails;
import com.xjrsoft.module.customer.erp_model.discountActivities.dto.TActivityListDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xjrsoft.common.page.PageOutput;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *  服务类
 *
 * @author pp
 * @since 2021-10-29
 */
public interface ITActivityService extends IService<TActivity> {
	/**
	 * 自定义分页
	 *
	 * @param pageListDto
	 * @return
	 */
	IPage<TActivity> getPageList(TActivityListDto pageListDto);

	List<TActivitydetails> getTActivitydetailsByParentId(String parentId);
	String addTActivity(TActivity tActivity, List<TActivitydetails> tActivitydetailsList);

	boolean updateTActivity(String id, TActivity tActivity, List<TActivitydetails> tActivitydetailsList);
}
